package com.bdqn.ch11.vo;

import com.bdqn.ch11.vo.Dept;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Deptment {

    @Bean
    public Dept caiwubuDept() {
        return new Dept(1, "财务部");
    }

    @Bean
    public Dept renshibuDept() {
        return new Dept(2, "人事部");
    }
}
